<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link href="images/reset.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<link href="images/system.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />  
<link href="images/table_form.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet" type="text/css" />
<title>后台管理</title>
<script src="{yun:}$config.sy_weburl{/yun}/js/jquery-1.8.0.min.js?v={yun:}$config.cachecode{/yun}"></script>
<script src="js/admin_public.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script> 
<script> 
$(document).ready(function(){
	$("input[name=type]").click(function(){
		var type = $(this).val();
		if(type=="integral"){
			$("#integral_tr").show();
			$("#price_tr").hide();
		}else{
			$("#integral_tr").hide();
			$("#price_tr").show();
		}
	});
});
function check(){
	if($("#userarr").val()==''){
		parent.layer.msg('请输入用户名！', 2,8);return false;
	}
	if($("#price_int").val()<1){
		parent.layer.msg('请输入{yun:}$config.integral_pricename{/yun}！', 2,8);return false;
	}
	
	/*
	if($("input[name='type']").attr("checked")=='checked'){
		var type=$("input[name='type']").val();
	}
	if(type=='integral'){
		if($("#price_int").val()<1){
			parent.layer.msg('请输入{yun:}$config.integral_pricename{/yun}！', 2,8);return false;
		}
	}else{
		if($("#order_price").val()==''){
			parent.layer.msg('请输入金额！', 2,2);return false;
		}
	} 
	*/
}
</script>
<link href="{yun:}$config.sy_weburl{/yun}/js/layui/css/layui.css?v={yun:}$config.cachecode{/yun}" rel="stylesheet"/>
</head>
<body class="body_ifm">
<div class="infoboxp">
<div class="admin_new_tip">
<a href="javascript:;" class="admin_new_tip_close"></a>
<a href="javascript:;" class="admin_new_tip_open" style="display:none;"></a>
<div class="admin_new_tit"><i class="admin_new_tit_icon"></i>操作提示</div>
<div class="admin_new_tip_list_cont">
<div class="admin_new_tip_list">充值时，请正确填写用户名和要充值的{yun:}$config.integral_pricename{/yun}。确认用户名的正确性。</div>
</div>
</div>
<div class="clear"></div>
<div class="infoboxp_top mt10">
<h6>后台充值</h6>
</div>
<iframe id="supportiframe"  name="supportiframe" onload="returnmessage('supportiframe');" style="display:none"></iframe> 
    <div class="tag_box mt10">
<form name="myform" action="index.php?m=recharge" method="post"  target="supportiframe" onSubmit="return check()" class="layui-form">
	<table width="100%" class="table_form">
        <tr class="admin_table_trbg">
			<th width="140">充值用户名:</th>
			<td>
            <div class="layui-form-item">
              <div class="layui-input-block">
                 <div class="layui-input-inline">
                   <input class="layui-input input-text" type="text" name="userarr" id='userarr' size="40" value=""/>
                 </div>
                 <div class="layui-form-mid layui-word-aux">多个用户名用逗号隔开</div>
              </div>
            </div></td>
		</tr>
        <!--
        <tr>
			<th width="140">充值类型:</th>
			<td><input type="radio" name="type" value="integral" id="RadioGroup1_0" checked>
			     <label for="RadioGroup1_0">{yun:}$config.integral_pricename{/yun}</label>
			    <input type="radio" name="type" value="price" id="RadioGroup1_1">
			    <label for="RadioGroup1_1">余额</label>
			  </td>
		</tr>
        -->
        <tr class="admin_table_trbg">
			<th width="140">充值方式:</th>
			<td>
            <div class="layui-form-item">
              <div class="layui-input-inline">
                <input type="radio" name="fs" value="1" id="fs_0" checked title="增加"/>
                <input type="radio" name="fs" value="2" id="fs_1" title="扣除"/>
              </div>
            </div>
		  </td>
		</tr>
        <tr class="int" id="integral_tr">
            <th height="30">{yun:}$config.integral_pricename{/yun}:</th>
            <td>
            <div class="layui-form-item">
              <div class="layui-input-block">
                 <div class="layui-input-inline">
                   <input class="input-text" type="text" name="price_int" id="price_int" size="20" maxlength="16" onKeyUp="this.value=this.value.replace(/[^0-9.]/g,'')"/>
                 </div>
                 <div class="layui-form-mid layui-word-aux">{yun:}$config.integral_priceunit{/yun}</div>
               </div>
            </div></td>
        </tr>
        <!--
		<tr style="display:none;" id="price_tr">
			<th>充值金额:</th>
			<td><input class="input-text" type="text" id="order_price" name="order_price" maxlength="16" size="20" value=""/>元</td>
		</tr>-->
          <tr class="admin_table_trbg">
            <th height="30" >备　　注:</th>
            <td><textarea name="remark" rows=2 cols=40 wrap="physical"  class="admin_comdit_textarea"></textarea></td>
        </tr>
		<tr>
        <th></th>
			<td>
    		<input class="layui-btn layui-btn-normal" type="submit" name="insert" value="&nbsp;充　值&nbsp;" />
			</td>
		</tr>
	</table>
	<input type="hidden" name="pytoken" value="{yun:}$pytoken{/yun}">
</form>
</div>
</div>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/layui.js?v={yun:}$config.cachecode{/yun}" language="javascript"></script>
<script src="{yun:}$config.sy_weburl{/yun}/js/layui/phpyun_layer.js?v={yun:}$config.cachecode{/yun}"></script>
<script type="text/javascript">
  layui.use(['form'],function(){
    var form = layui.form
      ,$ = layui.$;

  });
</script>
</body>
</html>